﻿using HaiFengShop.ORM.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HaiFengShop.Entity
{
    public class DTOOrder
    {

        public int actualPrice { get; set; }

        public int addressId { get; set; }
        public int freightPrice { get; set; }
        public int offlinePay { get; set; }
        public string postscript { get; set; }
        public int formId { get; set; }

    }
    public class DTOnewOrderList: tb_order
    {
        public List<tb_order_goods> goodsList { get; set; }
        public int goodsCount { get; set; }
        public new DateTime add_time { get; set; }

        public string order_status_text { get; set; }

        public DTOHandleOption handleOption { get; set; }
    }

    public class DTOHandleOption {
        /// <summary>
        /// 取消操作
        /// </summary>
        public bool cancel { get; set; }
        /// <summary>
        /// 删除操作
        /// </summary>
        public bool delete { get; set; }
        /// <summary>
        /// 支付操作
        /// </summary>
        public bool pay { get; set; }
        /// <summary>
        /// 确认收货完成订单操作
        /// </summary>
        public bool confirm { get; set; }
        public bool cancel_refund { get; set; }
    }
}
